<?php
if (!defined('ROOT')) {
   die("Impossible de voir ce fichier directement.");
}
include_once (ROOT.'/inc/classes/Model.php');

class VideoCategory extends Model
{
    var $table="videos_categories";
    var $index = "id";
    
    var $id;
    var $name;
    var $description;
   
    
    
    function getFields()
    {
        $this->fields['id'] = $this->id;
        $this->fields['name'] = $this->name;
        $this->fields['description'] = $this->description;
    
    }
    
    function setFields()
    {
        $this->id = $this->fields['id'];
        $this->name = $this->fields['name'];
        $this->description = $this->fields['description'];
       
    }
}
